Skip to content

[3.7] closes bpo-34468: Objects/rangeobject.c: Fix an always-false condition in range_repr() (GH-8880)#8893

Merged
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-7ecae3c-3.7
Aug 24, 2018
Merged

[3.7] closes bpo-34468: Objects/rangeobject.c: Fix an always-false condition in range_repr() (GH-8880)#8893
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-7ecae3c-3.7

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 24, 2018

Copy link
Copy Markdown
Contributor

Also, propagate the error from PyNumber_AsSsize_t() because we don't care
only about OverflowError which is not reported if the second argument is NULL.

Reported by Svace static analyzer.
(cherry picked from commit 7ecae3c)

Co-authored-by: Alexey Izbyshev izbyshev@ispras.ru

https://bugs.python.org/issue34468

…n in range_repr() (pythonGH-8880)

Also, propagate the error from PyNumber_AsSsize_t() because we don't care
only about OverflowError which is not reported if the second argument is NULL.

Reported by Svace static analyzer.
(cherry picked from commit 7ecae3c)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
@miss-islington

Copy link
Copy Markdown
Contributor Author

@izbyshev and @benjaminp: Backport status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit d9e1abf into python:3.7 Aug 24, 2018
@miss-islington miss-islington deleted the backport-7ecae3c-3.7 branch August 24, 2018 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants